#ifndef CUSTOMIZEEDIT_H
#define CUSTOMIZEEDIT_H

#include <QLineEdit>



class CustomizeEdit : public QLineEdit
{
    Q_OBJECT
public:
    CustomizeEdit(QWidget *parent = nullptr);
    void SetMaxLength(int maxLen);
protected:
    void focusOutEvent(QFocusEvent *) override;
private:
    void LimitTextLength(QString text);
    int _maxLen;
signals:
    void SigFoucusOut();
};

#endif // CUSTOMIZEEDIT_H
